package cn.ccew.sys.web.common;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cn.ccew.sys.web.SysBaseController;

@Controller
public class KindeditorController extends SysBaseController {

	@RequestMapping(value = { "/kindeditor_upload_json.wb"}, method = RequestMethod.POST)
	public String upload_json(HttpServletRequest request, HttpServletResponse response) throws IOException {
		response.setContentType("text/html");
		response.setCharacterEncoding("UTF-8");
		return "utils/upload_json";
	}

	@RequestMapping(value = { "/kindeditor_manager_json.wb"})
	public String file_manager_json(HttpServletRequest request, HttpServletResponse response) throws IOException {
		response.setContentType("text/html");
		response.setCharacterEncoding("UTF-8");
		return "utils/file_manager_json";
	}

}